﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.Timing;

namespace Xwy.MyProject.Entities
{
    public class Student : Entity, IHasCreationTime
    {
        
        public const int MaxLength = 255;
        public Student()
        {

            this.Name = string.Empty;
            

            CreationTime = Clock.Now;
        }

        [Required]
        [StringLength(MaxLength)]
        public string Name { get; set; }


        public DateTime CreationTime { get; set; }
    }
}
